package com.example.testcomposeproject.pages.testComposeView

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.material3.Text
import androidx.compose.ui.platform.ComposeView
import androidx.fragment.app.Fragment
import com.example.testcomposeproject.R

class HMFragment : Fragment(){

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View {
        return ComposeView(requireContext()).apply {
            setContent {
               Text(text ="Compose使用Fragment展示")
            }
        }
//        return LayoutInflater.from(requireContext()).inflate(R.layout.fragment_hm, container, false)
    }
}